<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登录</title>
</head>
<body>
    <form action="http://localhost:8080/login" method="post">
      <table>
        <tr>
          <td>
            用户名:
          </td>
          <td>
            <input type="text" name="username">
          </td>
        </tr>
        <tr>
          <td>
            密码:
          </td>
          <td>
            <input type="password" name="pwd">
          </td>
        </tr>
        <tr>
          <td>
            验证码:
          </td>
          <td>
            <input type="text" name="code">
            <!--src指向生成验证码图片的servlet路径-->
            <img src="/createCode">
          </td>
        </tr>
        <tr>
          <td>
            <input type="submit" value="登录">
          </td>
        </tr>
      </table>
    </form>
</body>
</html>